.class Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;
.super Ljava/lang/Object;
.source "WebViewActivity.java"

# interfaces
.implements Landroid/webkit/DownloadListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/WebViewActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "WebViewDownLoadListener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/WebViewActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 267
    iput-object p1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onDownloadStart(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V
    .registers 11
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "userAgent"    # Ljava/lang/String;
    .param p3, "contentDisposition"    # Ljava/lang/String;
    .param p4, "mimetype"    # Ljava/lang/String;
    .param p5, "contentLength"    # J

    .prologue
    .line 272
    :try_start_0
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 273
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 274
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 275
    const-string v2, "com.android.browser"

    const-string v3, "com.android.browser.BrowserActivity"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 276
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_1d
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_1d} :catch_1e

    .line 286
    .end local v1    # "intent":Landroid/content/Intent;
    :goto_1d
    return-void

    .line 277
    :catch_1e
    move-exception v0

    .line 279
    .local v0, "e":Ljava/lang/Exception;
    :try_start_1f
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 280
    .restart local v1    # "intent":Landroid/content/Intent;
    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 281
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 282
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_1f .. :try_end_35} :catch_36

    goto :goto_1d

    .line 283
    .end local v1    # "intent":Landroid/content/Intent;
    :catch_36
    move-exception v2

    goto :goto_1d
.end method
